<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->get('gather','GatherController@index');
    $router->get('history_win','HistoryWinController@index');
    $router->resource('history_data','HistoryDatumController');
    $router->get('statistics/gather','StatisticsController@gather');
    $router->get('statistics/history','StatisticsController@history');

});
